<template>
    <div id="app">
      <!-- <keep-alive>
          <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive"></router-view> -->

        <router-view></router-view>
    </div>
</template>
<script>
export default {
  data: function() {
    return {
     
      }
  },
  mounted(){
        // // 关闭浏览器窗口的时候清空浏览器缓存在localStorage的数据
        // window.onbeforeunload = function (e) {
        //     var storage = window.localStorage;
        //     storage.clear()
        // }
       
    }
  
};
</script>
<style>
    @import "./assets/css/main.css";
    @import "./assets/css/color-dark.css";     /*深色主题*/
    /*@import "./assets/css/theme-green/color-green.css";   浅绿色主题*/
    /* 全局滚动条样式统一 */
    ::-webkit-scrollbar {
      width: 10px; /*滚动条宽度*/
      height: 10px; /*滚动条高度*/
    }
    ::-webkit-scrollbar-track {
      border-radius: 10px; /*滚动条的背景区域的圆角*/
      background-color: #f8f8f8; /*滚动条的背景颜色*/
    }
    ::-webkit-scrollbar-thumb {
      border-radius: 10px; /*滚动条的圆角*/
      background-color: #dddddd; /*滚动条的背景颜色*/
    }
    ::-webkit-scrollbar-thumb:hover {
      background-color:#bbb; 
    }
</style>